import {request} from "@/utils/request";
import type AttendanceGroupResponse from "@/api/types/AttendanceGroupResponse";
import type BaseResponse from "@/api/types/BaseResponse";

// 查询所有考勤组
export async function getAttendanceGroups() {
    return await request<BaseResponse<{ info_list: AttendanceGroupResponse[] }>>({
        url: "/kaoqin/attendancegroup",
        method: "GET",
        isAuthenticated: true,
    })
}
